package com.xuecheng.framework.domain.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiImplicitParam;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import javax.persistence.Id;
import java.util.Date;

/**
 * MongoDB的fs.files
 */
@Document(collection = "fs.files")
@Data
public class FSFile {
    @Id
    private String id;
    private String chunkSize;
    @Field("filename")
    private String fileName;
    private String length;
    @Field("md5")
    private String MD5;
    @Field("uploadDate")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadDate;
}
